package com.bci.internal.engine.bcibpmengine.controller;


import com.bci.internal.engine.bcibpmengine.service.ActivitiHistoryService;
import com.bci.internal.engine.bcibpmengine.support.RestResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author jzwu
 * @since 2021/4/5 0005
 */
@Api(tags = "通用流程引擎任务接口")
@RestController
@RequestMapping("/activitiHistory")
public class ActivitiHistoryController {

    @Resource
    private ActivitiHistoryService activitiHistoryService;


    @ApiOperation("流程图高亮")
    @GetMapping("/gethighLine")
    public RestResult<?> gethighLine(@RequestParam("instanceId") String instanceId, @RequestParam("assignee") String assignee) {
        return RestResult.builder().data(activitiHistoryService.gethighLine(instanceId, assignee)).build();

    }
}